package 勤工俭学;

public class Test {
	public static void main(String[]args) throws Exception {
		Student s1 = new Student("小张", 0, "计算机网络实验室", "组成原理实验室");
		Student s2 = new Student("小王", 0, "大数据科学与技术实验室", "电路模拟电子技术实验室");
		System.out.println("学生信息：");
		System.out.println(s1);
		System.out.println(s2);
		room r1 = new room("计算机网络实验室", "优秀");
		room r2 = new room("组成原理实验室", "及格");
		room r3 = new room("大数据科学与技术实验室", "不及格");
		room r4 = new room("电路模拟电子技术实验室", "及格");
		System.out.println("教室信息：");
		System.out.println(r1);
		System.out.println(r2);
		System.out.println(r3);
		System.out.println(r4);
		System.out.println("小张等级为" + r1.level + "的实验室为:" + s1.tab1);
		System.out.println("小张等级为" + r2.level + "的实验室为:" + s1.tab2);
		System.out.println("小王等级为" + r3.level + "的实验室为:" + s2.tab1);
		System.out.println("小王等级为" + r4.level + "的实验室为:" + s2.tab2);
		double result1 = Prize.sum(500, 300);
		System.out.println("小张一周的收入为:" + result1);
		s1.income = result1;
		s1.income = s1.income * 18;
		double result2 = Prize.sum(300, 100);
		System.out.println("小王一周的收入为:" + result2);
		s2.income = result2;
		s2.income = s2.income * 18;
		System.out.println("小张的总收入为：" + s1.income);
		double result3 = Prize.avg(s1.income);
		System.out.println("小张税后的收入为：" + result3);
		System.out.println("小王的总收入为:" + s2.income);
		double result4 = Prize.avg(s2.income);
		System.out.println("小王税后的收入为:" + result4);
	}
}

